import Vue from 'vue'
import VueRouter from 'vue-router'
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import HomeView from '../views/HomeView.vue';
import Login from '../views/login.vue';

Vue.use(ElementUI);
Vue.use(VueRouter)

const routes = [
  {
    path: "/home/:usertoken",
    name: "home",
    component: HomeView,
  },
  {
    path: "/",
    name: "login",
    component: Login,
  },
 
];

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router
